<!jobTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 加载部部样式及META信息 -->
    <title>管理员</title>
    <div th:replace="common/meta"></div>
    <script>
        require.config.jsname = "backend/job/index";
        require.config.modulename = "admin"
        require.config.controllername = "auth.admin"
        require.config.actionname = "add"
        require.config.moduleurl = "/admin/add"
    </script>
</head>

<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="content">
                        <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator"
                              method="POST" action="/sys/emp/save">

                            <!-- name  -->
                            <div class='form-group'>
                                <label for='name' class='control-label col-xs-12 col-sm-2'>姓名:</label>
                                <div class='col-xs-12 col-sm-8'>
                                    <input id='name' type='text' class='form-control' name='name'>
                                </div>
                            </div>
                            <!-- age  -->
                            <div class='form-group'>
                                <label for='age' class='control-label col-xs-12 col-sm-2'>年龄:</label>
                                <div class='col-xs-12 col-sm-8'>
                                    <input id='age' type='text' class='form-control' name='age'>
                                </div>
                            </div>
                            <!-- sex  -->
                            <div class='form-group'>
                                <label for='sex' class='control-label col-xs-12 col-sm-2'>性别:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <select id="sex" class="form-control selectpicker" data-rule="required;" name="sex">
                                        <option value="" selected="selected">请选择</option>
                                        <option value="男">男</option>
                                        <option value="女">女</option>
                                    </select>
                                </div>
                            </div>
                            <!-- job_id  -->
                            <div class='form-group'>
                                <label for='job_id' class='control-label col-xs-12 col-sm-2'>部门:</label>
                                <div class="col-xs-12 col-sm-8">
                                        <select id="job_id" class="form-control selectpicker" data-rule="required;"
                                                name="job_id">
                                            <option value="" selected="selected">请选择</option>
                                            <option th:each="job:${jobs}" th:value="${job.id}"
                                                    th:text="${job.name}">男
                                            </option>
                                        </select>
                                </div>
                            </div>

                            <div class="form-group hidden layer-footer">
                                <label class="control-label col-xs-12 col-sm-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="common/script"></div>
</body>
</html>